package com.youlu.campus.admin.community.controller;

import com.youlu.campus.entity.VO.req.ExportUserSignUpReq;
import com.youlu.campus.service.AdminExportUserSignUpService;
import com.youlu.campus.service.activity.ExportUserSignUpService;
import com.yuelin.infrastructure.quantum.common.QResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ExportUserSignUpController {

    @Autowired
    private ExportUserSignUpService exportUserSignUpService;

    @Autowired
    private AdminExportUserSignUpService adminExportUserSignUpService;

    @PostMapping("/public/export/user-signup")
    public QResult exportUser(@RequestBody ExportUserSignUpReq exportUserSignUpReq){
        exportUserSignUpService.exportSignUP(exportUserSignUpReq.getAreaUniversity());
        return QResult.success(null);
    }

    @GetMapping("/public/university/user-signup")
    public QResult UniversityBaoMingStatistics(){
        adminExportUserSignUpService.doUniversityBaoMingStatistics();
        //exportUserSignUpService.exportSignUP(exportUserSignUpReq.getAreaUniversity());
        return QResult.success(null);
    }
}
